package exp.ranking;

import opennlp.tools.sentdetect.SentenceDetectorME;
import tools.FileReaderEnhance;
import tools.nlp.SentenceDetector;

public class Ex1 {
	public static void main(String[] args) {
		String [] paragraphs = FileReaderEnhance.readToString("data/test/document.txt").split("\t◆\t");
		SentenceDetector sd = new SentenceDetector();
		SentenceDetectorME sdm = sd.getSentenceDetector();
		for (String para : paragraphs) {
			String [] sens = sdm.sentDetect(para);
			for (String sen : sens) {
				System.out.println("\t" + sen);
			}
			System.out.println();
		}
	}
}
